package com.aaa.common.result;

import lombok.Data;

import java.io.Serializable;

/**
 * @className PageQuery
 * @Description 分页
 * @Author wyy
 * @Data 2020/11/30 20:14
 * @Version 1.0
 */
@Data
public class PageQuery implements Serializable {
    private  Integer   page;//当前页
    private  Integer   count;//数量

    public  Integer getIndex(){
        return (page-1)*count;
    }
}
